<?php
include_once('../admin/php/bootstrap.php');
$js = '$.backstretch([';
foreach (Home::getInstance()->imagenes() as $imagen) {
    $js .= '"content/home/'.$imagen->src.'", ';
}
$js = substr($js, 0, -2);
$js .= '], {duration: 3000, fade: 750});';
header('Content-Type: application/javascript');
echo($js);
?>
